<?php
namespace Home\Controller;
use Think\Controller;

class RpageController extends PublicController {

	public function _empty($name) {
		$this->index($name);
	}

	protected function index($name) {
		$oop = D('DocumentView');
		$con['doc_status'] = 1;
		$con['cat_status'] = 1;
		$con['doc_unique'] = $name;
		$list = $oop->where($con)->find();
		if ($list) {
			$this->assign($list);
			$this->display($list['doc_tpl']);
		} else {
			$this->display("cms_not_found");
		}
	}
}